<template>
	<view>
		<view class="min">

			<view class="top">
				{{list.title}}
			</view>
			<view class="m">
				{{list.author}}
			</view>
			<view class="text" v-html="list.text">

			</view>
		</view>
	</view>
</template>

<script>
	import {
		getarticleinfo
	} from "../../api/user.js"
	export default {
		data() {
			return {
				list: {},
			};
		},
		onLoad(v) {

			this.gitinfo(v)

		},
		onReady() {


		},
		methods: {

			async gitinfo(v) {
				// console.log(v);
				// let _this = this
				let res = await getarticleinfo(v)
				// console.log(res.data);
				// console.log(res.data);
				this.list = res.data[0]
				uni.setNavigationBarTitle({
					title: this.list.title

				})
			}

		}
	}
</script>

<style lang="scss">
	.min {
		height: 100%;
		width: 90%;
		margin: 0 auto;

		.top {
			margin: 40rpx 0;
			font-size: 50rpx;
			font-weight: bolder;
		}

		.m {
			margin-bottom: 40rpx;
			font-weight: 600;
		}
	}
</style>